﻿using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Data;

/// <summary>
///  Namespace: Zy.WPF.CtrLib.Converts
///  Name： Class1
///  Author: zy
///  Time:  2022-04-11 22:00:50
///  Version:  0.1
/// </summary>

namespace Zy.WPF.CtrLib.Converts
{
    /// <summary>
    /// 是否相等转换器
    /// </summary>
    public class IsEqualConverter : IMultiValueConverter
    {
        public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture)
        {
            return values[0].ToString() == values[1].ToString();
        }


        object[] IMultiValueConverter.ConvertBack(object value, Type[] targetTypes, object parameter, CultureInfo culture)
        {
            return null;
        }
    }
}
